<?php	
	/*
	 *	Sample Module template for "OH"
	 *  
	 *  use for write develop module interface
	 *  to encampusulate opensource script into "OH"
	 */
	
	// Interface function	
	function oh_module_mail($tokens) {
		global $oh_object_mail;
		return $oh_object_mail;	
	} 

	// Option file required
	require_once($oh['path']."/modules/mail/libmail.php");
	
	// Main class of module
	class oh_class_mail {		
		function oh_class_mail() {
		}
		function send($data) {
			$mail = new Mail();
			$mail->To($data['to']);
			$mail->From($data['from']);
			$mail->Subject($data['subject']);
			$mail->Body($data['body']);
			$mail->Send();
		}
	}
	
	// Main object of module
	global $oh_object_mail;
	$oh_object_mail = new oh_class_mail();
?>